#pragma once
#include <vector>
using namespace std;
class JPoint;
class JBoundary
{
public:
	JBoundary();
	JBoundary(JPoint* _p1, JPoint * _p2);
	~JBoundary();

private:
	JPoint*		m_pCtrlPoint[2];

	void	GenerateBoundaryBox(CRect& _rc, const JPoint* _pPoint);
public:
	bool	IsSameBoundary(JPoint* _p1, JPoint* _p2);
	void	SetCtrlPoints(JPoint* _p1, JPoint* _p2);
	JPoint*	GetPoint(int _idx){ return m_pCtrlPoint[_idx]; }
	void	GenerateBoundaryBox(CRect& _rc);

	
	void	GeneratePath(vector<CPoint>& _path, JPoint* _pPointStart);
};

